package com.liao.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.liao.dao.Top10CategoryDaoImpl;
import com.liao.dao.Top10PatientDaoImpl;
import com.liao.entity.Top10Patient;

import java.util.List;

public class Top10PatientService {
    Top10PatientDaoImpl dao=new Top10PatientDaoImpl();
    public String findAll() throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.writeValueAsString(dao.findAll());
    }
}
